package com.kou.backend.request.file;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.kou.backend.request.QueryListBaseDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 文件列表分页查询请求参数
 *
 * @author: kou
 * @since: 2025/8/28 17:15
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class FileFindPageRequestDTO extends QueryListBaseDTO {
    @Schema(name = "fileName", description = "文件名称")
    private String fileName;
    @Schema(name = "fileType", description = "文件类型")
    private String fileType;
    @Schema(name = "fileSize", description = "文件大小")
    private String fileSize;
    /**
     * 创建时间
     */
    @Schema(name = "startTime", description = "创建开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime startTime;
    @Schema(name = "endTime", description = "创建结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime endTime;
}
